<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>'clist.jsp'</title>
    <style type="text/css">
    td {
    text-align: center;
    background-color: gold;
    } 
    </style>
  </head>
  
  <body>
  <div align="center">
  <h1>小说收藏榜（前五）</h1>
  <table >
  <tr><td>小说名称</td><td>收藏数</td></tr>
  <c:forEach var="clist" items="${clistRank }">
  <tr>
  <td><a href="${pageContext.request.contextPath }/ShowNovelInfo?novelId=${clist.tb_novel_id}">${clist.novelname }</a></td>
  <td>${clist.total }</td></tr>
  </c:forEach>
  </table>
  </div>
   <div align="center">
   <a href="${pageContext.request.contextPath }/index.jsp">返回首页</a>
   </div>
  </body>
</html>
